package com.kun.reflection.demo02_memoryAnalysis;


import org.junit.Test;

//测试类加载的过程
public class Test01_classLoad {

    @Test
    public void test01_classLoad() throws Exception {
        A a = new A();
        System.out.println(a.a);

    }

}

class A{

    static int a = 100;


    static {
        System.out.println("A类的静态代码块执行");
        a = 200;
    }

    public A() {
        System.out.println("A类的构造方法执行");
    }
}